package com.seecoder.BlueWhale.enums;

public enum CategoryEnum {
    FOOD,CLOTHES,FURNITURE,ELECTRONICS,ENTERTAINMENT,SPORTS,LUXURY;

    public static CategoryEnum valueOf(Integer integer) {
        switch (integer) {
            case 0:
                return FOOD;
            case 1:
                return CLOTHES;
            case 2:
                return FURNITURE;
            case 3:
                return ELECTRONICS;
            case 4:
                return ENTERTAINMENT;
            case 5:
                return SPORTS;
            case 6:
                return LUXURY;
            default:
                throw new IllegalArgumentException("Invalid integer value for CategoryEnum: " + integer);
        }
    }
}
